//
   Created by 刘柘林 on 2016/12/12.
//doctype html
//html
//  head
//    title= title
//    link(rel='stylesheet', href='/stylesheets/style.css')
//  body
//    block content
doctype html
//
  Author: W3layouts
  Author URL: http://w3layouts.com
  License: Creative Commons Attribution 3.0 Unported
  License URL: http://creativecommons.org/licenses/by/3.0/
head
    //title ROTK hospital
    title= title
    link(href='/stylesheets/css/bootstrap.css', type='text/css', rel='stylesheet', media='all')
    link(href='/stylesheets/css/style.css', type='text/css', rel='stylesheet', media='all')
    // Custom Theme files
    meta(name='viewport', content='width=device-width, initial-scale=1')
    meta(http-equiv='Content-Type', content='text/html; charset=utf-8')
    script(type='application/x-javascript').
        addEventListener("load", function() {
            setTimeout(hideURLbar, 0);
        }, false);
        function hideURLbar(){
            window.scrollTo(0,1);
        }
    // //Custom Theme files
    // js
    script(src='/js/jquery-1.11.1.min.js')
    block scripts
    // //js
    // start-smoth-scrolling
    script(type='text/javascript', src='/js/move-top.js')
    script(type='text/javascript', src='/js/easing.js')
    script(type='text/javascript').
        jQuery(document).ready(function($) {
            $(".scroll").click(function(event){
                event.preventDefault();
                $('html,body').animate({scrollTop:$(this.hash).offset().top},1000);
            });
        });
    // //end-smoth-scrolling
// header
.header
    .container
        .header-logo
            a(href='/')
                img(src='/images/logo.png', alt='logo')
        .header-info
            - if(admin)
                p
                    a(href="/admin/" + admin.id + "/detail") 欢迎，#{admin.name}!{'&nbsp'}!{'&nbsp'}!{'&nbsp'}!{'&nbsp'}
                    a(href="/admin/logout", id="logoutpage", class="nav-before") 登出
            - else
                p
                    a(href="/admin/login", id="loginpage", class="nav-before") 登录!{'&nbsp'}!{'&nbsp'}!{'&nbsp'}!{'&nbsp'}
        .clearfix
// //header
// header-bottom
.header-bottom
  .container
    // top-nav
    .top-nav.cl-effect-5
      span.menu-icon
        img(src='/images/menu-icon.png', alt='')
      ul.nav1
      -if(admin)
        li
          a(href='/admin/show_users')
            span(data-hover='展示用户') 展示用户
      // script-for-menu
      script.
          $( "span.menu-icon" ).click(function() {
              $( "ul.nav1" ).slideToggle( 300, function() {
                  // Animation complete.
              });
          });
      // /script-for-menu
    // //top-nav
    form.navbar-form.navbar-right
      .form-group
        input.form-control(type='text', placeholder='Search')
        button.btn.btn-default(type='submit')
    .clearfix
body
    block content
    // //footer
    .footer-bottom
        .container
            p
                | Copyright © 2016 Doctor Plus. All rights reserved | Design by
                a(href='https://github.com/prohf/rotkRegistration') R.o.t.k
            p 更多信息：13012345678
            p
                a(href='/help') 帮助
    // smooth-scrolling-of-move-up
    script(type='text/javascript').
        $(document).ready(function () {
            /*
             var defaults = {
             containerID: 'toTop', // fading element id
             containerHoverID: 'toTopHover', // fading element hover id
             scrollSpeed: 1200,
             easingType: 'linear'
             };
             */
            $().UItoTop({easingType: 'easeOutQuart'});
        });
    a#toTop(href='#', style='display: block;')
        span#toTopHover(style='opacity: 1;')
    // //smooth-scrolling-of-move-up
    //
      Bootstrap core JavaScript
      ==================================================
    // Placed at the end of the document so the pages load faster
    script(src='/js/bootstrap.js')
